package com.demo.testpackage;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class createThread {
    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        ExecutorService executorService = Executors.newCachedThreadPool();
        executorService.submit(() -> {
            int a = 100000;
            int b = 0;
            while (b < a) {
                System.out.println("988woshinibabb");
                b++;
            }
        });
//        int a = 1000000;
//        int b = 0;
//        while (b < a) {
//            System.out.println("988woshinibabb");
//            b++;
//        }
        System.out.println("=========================================================================="+(System.currentTimeMillis()-startTime));
    }
}
